﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ShardMath
{
    class tokenObject
    {
        private bool isInt;
        private int integerToken = 0;
        private string stringToken = "NaO";

        public tokenObject(object newObject, bool isOperand)
        {
            if (isOperand)
            {
                integerToken = (int)newObject;
                isInt = true;
            }
            else
            {
                stringToken = newObject.ToString();
                isInt = false;
            }
        }

        public bool isOperand()
        {
            return isInt;
        }

        public int getOperand()
        {
            return integerToken;
        }

        public string getOperator()
        {
            return stringToken;
        }
    }
}
